package rladidxo.basic;

public class J05_sukjae38 {
public static void main(String[] args) {
	int i=0,sum=0;
	while(sum<10){
		i++;sum=sum+i;
		System.out.println(i+"and"+sum);
	}
	System.out.println("---------------------");
			i=0;sum=0;
	while(sum<10){
		i++;sum=sum-i;
		System.out.println(i+"and"+sum);
		break;
	}
	System.out.println("---------------------");
	i=0;sum=0;
	while(sum<0){
		i++;sum=sum-i;
		System.out.println(i+"and"+sum);
	}
	System.out.println("---------------------");
	
	i=0;sum=0;
	while(sum>=10){
		i++;sum=sum+i;
		System.out.println(i+"and"+sum);
	}
	System.out.println("---------------------");
	
	i=0;sum=0;
	while(sum<10){
		i++;sum=sum+i;
		System.out.println(i+"and"+sum);
	}
	System.out.println("---------------------");
	
}
}
